package com.redlight.service;

import com.redlight.pool.AbstractRunnablePoolTask;

import java.util.HashMap;

/**
 * Created by chao on 2019/1/23.
 */
public  class EmployeePool<E> extends AbstractRunnablePoolTask<E>{



//    @Override
    public Thread getThred() {
        return t;
    }

    @Override
    public boolean getRunnFlg() {
        return runFlg;
    }

    @Override
    public void excuteTask(Object param) throws Exception {
//        System.out.println("大家好，我是线程池"+param);
//        super.run();
        HashMap hashMap=(HashMap)param;
        String name = (String) hashMap.get("name");
        System.out.println(name);
        System.out.println("线程池id"+ super.getThreadId());
        System.out.println("线程池开始时间"+ super.getStartTim());

    }
}
